// JavaScript Document
document.write('<div id="loading"><div class="loader"></div></div>'); 
 
function addLoadEvent(func) { 
	  var oldonload = window.onload; 
	  if (typeof window.onload != 'function') { 
	    window.onload = func; 
	  } else { 
	    window.onload = function() { 
	      if (oldonload) { 
	        oldonload(); 
	      } 
	      func(); 
	    } 
	  } 
} 
	 
addLoadEvent(function() { 
	  //document.getElementById("loading").style.display="none"; 
	  $("#loading").fadeOut(500);
});